﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;

namespace Compilex.Syntatic
{
    public static class CexSyntaticAnalyzer
    {
        public static SyntaticAnalyzer GetCexSyntaticAnalyzer()
        {
            byte[] serializedAnalyzer = Properties.Resource1.cex;
            IFormatter formatter = new BinaryFormatter();
            using (Stream stream = new MemoryStream(serializedAnalyzer))
            {
                return (SyntaticAnalyzer)formatter.Deserialize(stream);
            }
        }
    }
}
